package com.yc.mybatis.bean;

import java.sql.Timestamp;

// 排片表的实体类 ==> 表=>类
public class SpPlan {

//    id	int	11	0	0	-1	0	0	0		0	编号: 自增列				-1	0
//    play_time	timestamp	0	0	-1	0	0	0	0		-1	播放时间: 开始播放的时间				0	0
//    mid	int	11	0	-1	0	0	0	0		0	电影id: 关联 sp_movie.id				0	0
//    hid	int	11	0	-1	0	0	0	0		0	影厅id: 关联 sp_hall.id				0	0
//    price	float	0	0	-1	0	0	0	0		0	价格				0	0

    private Integer id;
    private Timestamp playTime; // 播放时间 驼峰命名法
    private Integer mid;        // 电影id
    private Integer hid;        // 影厅id
    private Float price;        // 价格

    // 排片对象 关联 影厅  1对1 关系
    private SpHall hall;
    public SpHall getHall() {
        return hall;
    }
    public void setHall(SpHall hall) {
        this.hall = hall;
    }

    @Override
    public String toString() {
        return "SpPlan{" +
                "id=" + id +
                ", playTime=" + playTime +
                ", mid=" + mid +
                ", hid=" + hid +
                ", price=" + price +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Timestamp getPlayTime() {
        return playTime;
    }

    public void setPlayTime(Timestamp playTime) {
        this.playTime = playTime;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public Integer getHid() {
        return hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }
}
